
var xmlHttp = getXMLObject();
window.onload = function(){
		alert("come");
		alert("xml : " + xmlHttp);
}




function btnRequestNewTransfer(){
	if(!xmlHttp){
		alert("your browser does not support AJAX");
		return;
	}
	xmlHttp.onreadystatechange = btnRequestNewTransferSuccess();
	xmlHttp.open("Post","HomeServlet", true);
	xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	xmlHttp.send(null);// send data format name = value
}

function btnRequestNewTransferSuccess(){
	if(xmlHttp.readyState == 4 || xmlHttp.status == 200){
		document.getElementById("show").innerHTML = xmlHttp.responseText.name;
	}
}

//$('#btnhome').click(function(){
//	
//	$.ajax({  
//        url:'HomeServlet',  
//        type:'post',  
//        dataType: 'json',  
//        success: function(data) {  
//            $('#show').val(data.name);  
//          //  $('#email').val(data.email);  
//        }  
//    });  
//})